package com.googlecode.project4uz.demo;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Vector;

/**
 * Tymczasowa klasa do testowania deserializera.
 * 
 * @author Piotr Broniszewski
 * @author Artur Gertych
 */
public class SimpleClassForSerialize
{
	private static final long serialVersionUID = 6660207029710356347L;
	
	public int liczba = 123;
	
	public ArrayList<Integer> arrayListInt = new ArrayList<Integer>();
	public LinkedList<String> linkedListStr = new LinkedList<String>();
	public HashSet<Character> hashSetChar = new HashSet<Character>();
	public Vector<Double> vectorByte = new Vector<Double>();
	public HashMap<Integer, String> mapIntStr = new HashMap<Integer, String>();
	
	public ArrayList<TemporaryClassForSerialize> arrayListRef = new ArrayList<TemporaryClassForSerialize>();
	public HashMap<Character, TemporaryClassForSerialize> mapCharRef = new HashMap<Character, TemporaryClassForSerialize>();
	public HashMap<TemporaryClassForSerialize, Float> mapRefFloat = new HashMap<TemporaryClassForSerialize, Float>();
	public HashMap<TemporaryClassForSerialize, TemporaryClassForSerialize> mapRefRef = new HashMap<TemporaryClassForSerialize, TemporaryClassForSerialize>();
	
	public SimpleClassForSerialize()
	{
		TemporaryClassForSerialize tcfs = new TemporaryClassForSerialize();
		
		arrayListInt.add(10);
		arrayListInt.add(20);
		
		linkedListStr.add("jeden");
		linkedListStr.add("dwa");
		
		hashSetChar.add('a');
		hashSetChar.add('b');
		
		vectorByte.add(111.1);
		vectorByte.add(222.2);
		
		mapIntStr.put(1, "str1");
		mapIntStr.put(2, "str2");
		
		arrayListRef.add(tcfs);
		arrayListRef.add(tcfs);
		
		mapCharRef.put('a', tcfs);
		mapRefFloat.put(tcfs, 12f);
		mapRefRef.put(tcfs, tcfs);
	}
}
